package xyz.xtt.exchange.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

import xyz.xtt.exchange.entity.TblAsset;
import xyz.xtt.exchange.vo.AssetDetailsVo;
import xyz.xtt.exchange.vo.AssetTradeRecordVo;
import xyz.xtt.exchange.vo.AssetVo;

/**
 * <p>
 * 资产基础信息表 服务类
 * </p>
 *
 * @author author
 * @since 2024-10-23
 */
public interface ITblAssetService extends IService<TblAsset> {

	/**
	 * 查询资产的拥有人
	 * 
	 * @param uid
	 * @param assetId
	 * @return
	 */
	TblAsset orderQueryAsset(Long assetId);

	/**
	 * @param assetId
	 * @return
	 */
	AssetVo queryAssetVo(Long assetId);

	/**
	 * @param uid
	 * @return
	 */
	List<AssetVo> queryAssetVoPage(String uid);

	/**
	 * 子查询后在连接
	 * 
	 * @param uid
	 * @return
	 */
	List<AssetVo> subqueryAssetVoPage(String uid);

	/**
	 * @param uid
	 * @return
	 */
	List<AssetVo> fromqueryAssetVoPage(String uid, Integer curPage);

	/**
	 * 查询商品的交易记录
	 * 
	 * @param goodsId
	 * @return
	 */
	List<AssetTradeRecordVo> queryAssetTradeRecord(String goodsId);

	/**
	 * 查询资产详情
	 * 
	 * @param goodsId
	 * @return
	 */
	AssetDetailsVo queryDetail(String goodsId);

	/**
	 * @param goodsId
	 * @return
	 */
	List<String> queryBuyerChainAccount(String goodsId);

}
